package net.jiastudy.biz.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;

import net.jiastudy.biz.user.entity.User;
import net.jiastudy.core.base.BaseEntity;

public class Dict extends BaseEntity<Dict> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9128838126714241675L;
	private String groupCode;
	private String dictKey;
	private String dictValue;
	private Integer seq;
	private Long createdUserId;
	@TableField(exist = false)
	private User createdUser;

	public User getCreatedUser() {
		if (null != createdUser) {
			return createdUser;
		}
		if (null != createdUserId) {
			createdUser = new User();
			createdUser.setId(createdUserId);
			createdUser = createdUser.selectById();
		}
		return createdUser;
	}

	public void setCreatedUser(User createdUser) {
		this.createdUser = createdUser;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public String getDictKey() {
		return dictKey;
	}

	public void setDictKey(String dictKey) {
		this.dictKey = dictKey;
	}

	public String getDictValue() {
		return dictValue;
	}

	public void setDictValue(String dictValue) {
		this.dictValue = dictValue;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Long getCreatedUserId() {
		return createdUserId;
	}

	public void setCreatedUserId(Long createdUserId) {
		this.createdUserId = createdUserId;
	}
}
